import { chain } from 'youwilllike'

export const CONSOLE_REQUEST_ENABLE = process.env.NODE_ENV === 'development' ? true : false // 开启请求参数打印
export const CONSOLE_RESPONSE_ENABLE = false // 开启响应参数打印
export const CONSOLE_MONITOR_ENABLE = false // 监控记录打印

export const BASE_AJAX_URL = process.env.NODE_ENV === 'development' ? '/api' : '/api' // ! proxy会根据这里的配置进行代理
export const AXIOS_DEFAULT_CONFIG = {
  baseURL: BASE_AJAX_URL,
  timeout: 20000,
  maxContentLength: 2000,
  headers: {},
}
export const localstorageUtils = new chain.JLocalstorage()

// 缓存配置名称表
export const StoreConfigNameCollect = {
  token: 'token',
  auth_type: 'Bearer',
}
